﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using Newtonsoft.Json;

public partial class Rep_Cydmy : System.Web.UI.Page
{
    BLL.BLLRep br = new BLL.BLLRep();

    protected void Page_Load(object sender, EventArgs e)
    {
        //string name = HttpUtility.UrlDecode(Request.QueryString["name"]);

        string param = Request["param"];
        if (param != null)
        {
            if (param == "query")
            {
                string time = Request["time"];


                string strApp = br.RetTableByDay("电煤油日报表", "日点", DateTime.Parse(time));

                object obj = new { tableInfo = strApp };
                string result = JavaScriptConvert.SerializeObject(obj);
                Response.Write(result);
                Response.End();
            }
        }
    }
}
